<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>HTML创意生日贺卡CSS3布局</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
    <style type="text/css">
        .container {
            --background: #F3F0D7;
            --background-decor: #DBD0C0;
            --banner-bg: #1C0C5B;
            --banner-txt: white;
            --message-bg: #F1EDE9;
            --message-line: #94ACD4;
            --message-txt: #333;
            --space: 16px;
            --space-xsm: 4px;
            --space-sm: 8px;
            --space-lg: 24px;
            --space-xlg: 48px;

            width: 100vw;
            display: flex;
            justify-content: center;
            overflow: hidden;
            background-color: var(--background);
            background-image: radial-gradient(var(--background-decor) 20%, transparent 0), radial-gradient(var(--background-decor) 20%, transparent 0);
            background-size: 30px 30px;
            background-position: 0 0, 15px 15px;
        }

        .bday-card {
            max-width: 420px;
            height: 100%;
            padding-top: var(--space-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            position: relative;
        }

        .bday-pic {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 280px;
            height: 240px;
            padding: var(--space-sm) var(--space-sm) var(--space-xlg);
            background: white;
            border-radius: 4px;
            box-shadow: var(--space-xsm) var(--space-xsm) 15px rgba(0, 0, 0, .15);
            transform: rotate(5deg) translate(20px, 45px);
        }

        .bday-pic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .bday-decor--container {
            position: relative;
        }

        .bday-banner {
            display: flex;
            flex-direction: column;
            align-items: baseline;
            font-size: 42px;
            z-index: 1;
            color: var(--banner-txt);
            text-transform: uppercase;
            transform: rotate(-5deg);
            gap: var(--space-sm) 0;
        }

        .bday-banner span {
            background: var(--banner-bg);
            padding: var(--space) var(--space-lg);
            flex-grow: 0;
        }

        .bday-banner span:nth-child(2) {
            margin-left: var(--space-lg)
        }

        .bday-message {
            max-width: 80%;
            padding: 35px var(--space) 80px;
            font-size: 18px;
            line-height: 32px;
            color: var(--message-txt);
            background-color: var(--message-bg);
            overflow: hidden;
        }

        .bday-message--paper {
            background: repeating-linear-gradient(var(--message-bg), var(--message-bg) 31px, var(--message-line) 31px, var(--message-line) 32px);
            box-shadow: var(--space-xsm) var(--space-xsm) 15px rgba(0, 0, 0, .15)
        }

        .bday-decor {
            font-size: 96px;
        }

        .bday-decor--top-right {
            position: absolute;
            bottom: -70px;
            right: -20px;
        }

        .bday-decor--top-left {
            position: absolute;
            bottom: 0;
            left: -25px;
        }

        .bday-decor--bottom-right {
            position: absolute;
            right: 20px;
        }

    </style>
</head>
<body>
<div class="container">
    <div class="bday-card">
        <div class="bday-decor--container">
            <div class="bday-pic "><img
                    src="https://images.unsplash.com/photo-1572451479139-6a308211d8be?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=2670&amp;q=80">
            </div>
            <div class="bday-decor bday-decor--top-right float">🎈</div>
            <div class="bday-decor bday-decor--top-left spin">🌼</div>
        </div>
        <h1 class="bday-banner"><span th:text="${firstName}">陈</span><span th:text="${lastName}">永校</span></h1>
        <div class="bday-message bday-message--paper"><p>
            赢时胜全称“深圳市赢时胜信息技术股份有限公司”，创立于1998年，总部位于深圳，是目前国内知名的金融IT解决方案综合服务商，国家规划布局内重点软件企业。</p>
            <div class="bday-decor bday-decor--bottom-right zoom-left-in-out">🎉</div>
        </div>
    </div>
</div>

</body>
</html>